package com.foreveross.law.common.util;

/**
 * <p>
 * com.csair.udp.common.utils.SQLUtil.java
 * </p>
 * 
 * @author liaocw(mail)
 * @version $Revision$ $Date$
 * @Modified by liaocw(mail) description
 * @purpose add this file description here
 */
public class SQLUtil {
	@SuppressWarnings("rawtypes")
	public static String getMybatisID(Class claszz, String id) {
		return claszz.getName() + "." + id;
	}

	@SuppressWarnings("rawtypes")
	public static String getFindByPrimaryKeyQuery(Class claszz) {
		return getMybatisID(claszz, "getById");
	}

	@SuppressWarnings("rawtypes")
	public static String getInsertQuery(Class claszz) {
		return getMybatisID(claszz, "insert");
	}

	@SuppressWarnings("rawtypes")
	public static String getUpdateQuery(Class claszz) {
		return getMybatisID(claszz, "update");
	}

	@SuppressWarnings("rawtypes")
	public static String getDeleteQuery(Class claszz) {
		return getMybatisID(claszz, "delete");
	}

	@SuppressWarnings("rawtypes")
	public static String getPageQuery(Class claszz) {
		return getMybatisID(claszz, "findPage");
	}

	@SuppressWarnings("rawtypes")
	public static String getPageCountQuery(Class claszz) {
		return getMybatisID(claszz, "count");
	}
}
